/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br_aval;

import IDE_formularios.*;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;




/**
 *
 * @author erikjan
 */
public class FrmPrincipal extends javax.swing.JFrame {
     private CadastroServ Cadastroservidor;
     private CadEstrutura Cadastroestrutura;
     private FrmAssTag AssociarTags;
     private Avaliacao Avaliacao;
    
    /**
     * Creates new form Form_principal
     */
    public FrmPrincipal() {
        initComponents();
           
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jBform_servidor = new javax.swing.JButton();
        jBcad_estrutura = new javax.swing.JButton();
        btnAssTag = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jBform_servidor.setText("Cadastrar Servidor");
        jBform_servidor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBform_servidorActionPerformed(evt);
            }
        });

        jBcad_estrutura.setText("Cadastrar Estrutura");
        jBcad_estrutura.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBcad_estruturaActionPerformed(evt);
            }
        });

        btnAssTag.setText("Associar Tags/Malhas");
        btnAssTag.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAssTagActionPerformed(evt);
            }
        });

        jButton4.setText("Avaliação");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(btnAssTag, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addComponent(jBform_servidor, javax.swing.GroupLayout.PREFERRED_SIZE, 199, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jBcad_estrutura, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(37, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBform_servidor, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBcad_estrutura, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btnAssTag, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE)
                    .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBform_servidorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBform_servidorActionPerformed
        // TODO add your handling code here:
       Cadastroservidor = new CadastroServ();
       Cadastroservidor.setVisible(true);
              
    }//GEN-LAST:event_jBform_servidorActionPerformed

    private void jBcad_estruturaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBcad_estruturaActionPerformed
        try {
            Cadastroestrutura = new CadEstrutura();
        } catch (SQLException ex) {
            Logger.getLogger(FrmPrincipal.class.getName()).log(Level.SEVERE, null, ex);
        }
        Cadastroestrutura.setVisible(true);
        
    }//GEN-LAST:event_jBcad_estruturaActionPerformed

    private void btnAssTagActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAssTagActionPerformed
        try {
            AssociarTags = new FrmAssTag();
        } catch (SQLException ex) {
            Logger.getLogger(FrmPrincipal.class.getName()).log(Level.SEVERE, null, ex);
        }
        AssociarTags.setVisible(true);
        
        
    }//GEN-LAST:event_btnAssTagActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
         try {
             Avaliacao = new Avaliacao();
         } catch (SQLException ex) {
             Logger.getLogger(FrmPrincipal.class.getName()).log(Level.SEVERE, null, ex);
         }
          Avaliacao.setVisible(true);
        
    }//GEN-LAST:event_jButton4ActionPerformed

   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAssTag;
    private javax.swing.JButton jBcad_estrutura;
    private javax.swing.JButton jBform_servidor;
    private javax.swing.JButton jButton4;
    // End of variables declaration//GEN-END:variables
}
